package com.zzty.txj.controller;

import com.zzty.txj.entity.UserDaily;
import com.zzty.txj.service.UserDailyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/userDaily")
public class UserDailyController {
    @Autowired
    UserDailyService userDailyServiceImpl;

    @ResponseBody
    @RequestMapping(value="/insertTo", method=RequestMethod.POST)
    public Integer insertTo(UserDaily userDaily) {

        Integer count=userDailyServiceImpl.insertDaily(userDaily);

        return count;
    }

}
